3.1.34 \(\int \frac {1}{x^3 (x-x^3)} \, dx\)

Optimal. Leaf size=15 \[ -\frac {1}{3 x^3}-\frac {1}{x}+\tanh ^{-1}(x) \]

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {1584, 325, 206} \begin {gather*} -\frac {1}{3 x^3}-\frac {1}{x}+\tanh ^{-1}(x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/(x^3*(x - x^3)),x]

[Out]

-1/(3*x^3) - x^(-1) + ArcTanh[x]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 325

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[((c*x)^(m + 1)*(a + b*x^n)^(p + 1))/(a*
c*(m + 1)), x] - Dist[(b*(m + n*(p + 1) + 1))/(a*c^n*(m + 1)), Int[(c*x)^(m + n)*(a + b*x^n)^p, x], x] /; Free
Q[{a, b, c, p}, x] && IGtQ[n, 0] && LtQ[m, -1] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 1584

Int[(u_.)*(x_)^(m_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.))^(n_.), x_Symbol] :> Int[u*x^(m + n*p)*(a + b*x^(q -
 p))^n, x] /; FreeQ[{a, b, m, p, q}, x] && IntegerQ[n] && PosQ[q - p]

Rubi steps

\begin {align*} \int \frac {1}{x^3 \left (x-x^3\right )} \, dx &=\int \frac {1}{x^4 \left (1-x^2\right )} \, dx\\ &=-\frac {1}{3 x^3}+\int \frac {1}{x^2 \left (1-x^2\right )} \, dx\\ &=-\frac {1}{3 x^3}-\frac {1}{x}+\int \frac {1}{1-x^2} \, dx\\ &=-\frac {1}{3 x^3}-\frac {1}{x}+\tanh ^{-1}(x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.00, size = 31, normalized size = 2.07 \begin {gather*} -\frac {1}{3 x^3}-\frac {1}{x}-\frac {1}{2} \log (1-x)+\frac {1}{2} \log (x+1) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/(x^3*(x - x^3)),x]

[Out]

-1/3*1/x^3 - x^(-1) - Log[1 - x]/2 + Log[1 + x]/2

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x^3 \left (x-x^3\right )} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[1/(x^3*(x - x^3)),x]

[Out]

IntegrateAlgebraic[1/(x^3*(x - x^3)), x]

________________________________________________________________________________________

fricas [B]  time = 0.40, size = 30, normalized size = 2.00 \begin {gather*} \frac {3 \, x^{3} \log \left (x + 1\right ) - 3 \, x^{3} \log \left (x - 1\right ) - 6 \, x^{2} - 2}{6 \, x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^3/(-x^3+x),x, algorithm="fricas")

[Out]

1/6*(3*x^3*log(x + 1) - 3*x^3*log(x - 1) - 6*x^2 - 2)/x^3

________________________________________________________________________________________

giac [B]  time = 0.15, size = 27, normalized size = 1.80 \begin {gather*} -\frac {3 \, x^{2} + 1}{3 \, x^{3}} + \frac {1}{2} \, \log \left ({\left | x + 1 \right |}\right ) - \frac {1}{2} \, \log \left ({\left | x - 1 \right |}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^3/(-x^3+x),x, algorithm="giac")

[Out]

-1/3*(3*x^2 + 1)/x^3 + 1/2*log(abs(x + 1)) - 1/2*log(abs(x - 1))

________________________________________________________________________________________

maple [A]  time = 0.06, size = 24, normalized size = 1.60 \begin {gather*} -\frac {\ln \left (x -1\right )}{2}+\frac {\ln \left (x +1\right )}{2}-\frac {1}{x}-\frac {1}{3 x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x^3/(-x^3+x),x)

[Out]

-1/2*ln(x-1)+1/2*ln(x+1)-1/3/x^3-1/x

________________________________________________________________________________________

maxima [A]  time = 1.26, size = 25, normalized size = 1.67 \begin {gather*} -\frac {3 \, x^{2} + 1}{3 \, x^{3}} + \frac {1}{2} \, \log \left (x + 1\right ) - \frac {1}{2} \, \log \left (x - 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x^3/(-x^3+x),x, algorithm="maxima")

[Out]

-1/3*(3*x^2 + 1)/x^3 + 1/2*log(x + 1) - 1/2*log(x - 1)

________________________________________________________________________________________

mupad [B]  time = 4.92, size = 13, normalized size = 0.87 \begin {gather*} \mathrm {atanh}\relax (x)-\frac {x^2+\frac {1}{3}}{x^3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x^3*(x - x^3)),x)

[Out]

atanh(x) - (x^2 + 1/3)/x^3

________________________________________________________________________________________

sympy [A]  time = 0.14, size = 24, normalized size = 1.60 \begin {gather*} - \frac {\log {\left (x - 1 \right )}}{2} + \frac {\log {\left (x + 1 \right )}}{2} - \frac {3 x^{2} + 1}{3 x^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x**3/(-x**3+x),x)

[Out]

-log(x - 1)/2 + log(x + 1)/2 - (3*x**2 + 1)/(3*x**3)

________________________________________________________________________________________